package com.peace.hospital.entity.drugstorage;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 供应商信息表
 * </p>
 *
 * @author xie
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Supplier implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 供应商id
     */
    @TableId(value = "supid", type = IdType.AUTO)
    private Integer supid;

    /**
     * 供应商名称
     */
    private String supname;

    /**
     * 联系方式
     */
    private String suptel;

    /**
     * 数据库名称
     */
    private String supdbsource;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getSupid() {
        return supid;
    }

    public void setSupid(Integer supid) {
        this.supid = supid;
    }

    public String getSupname() {
        return supname;
    }

    public void setSupname(String supname) {
        this.supname = supname;
    }

    public String getSuptel() {
        return suptel;
    }

    public void setSuptel(String suptel) {
        this.suptel = suptel;
    }

    public String getSupdbsource() {
        return supdbsource;
    }

    public void setSupdbsource(String supdbsource) {
        this.supdbsource = supdbsource;
    }

    @Override
    public String toString() {
        return "Supplier{" +
                "supid=" + supid +
                ", supname='" + supname + '\'' +
                ", suptel='" + suptel + '\'' +
                ", supdbsource='" + supdbsource + '\'' +
                '}';
    }
}
